package com.heima.schedule.service;

import com.heima.model.schedule.dtos.Task;

/**
 * @author brianxia
 * @version 1.0
 * @date 2022-11-25 11:20
 */
public interface TaskService {

    public void add(Task task);

    public void cancel(long taskId);

    public Task poll(int priority,int type);

    public void syncZsetToList();

    public void syncDbToRedis();
}
